home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dskut
/
pdisk.zip
/
RDIOCTL.ASM
< prev
next >
Wrap
Assembly Source File
|
1989-01-12
|
318b
|
25 lines
.radix 16
% .MODEL memmodel,C
; .286
.code
read_ioctl proc buffer:ptr byte, drive:word
If @DataSize
push ds
lds dx,buffer
Else
mov dx,buffer
Endif
mov bx,drive
mov ax,4405
mov cx,12 ; somewhat arbitrary
int 21
jnc @F
neg ax
@@:
If @DataSize
pop ds
Endif
ret
read_ioctl endp
end